package com.api.shopapi.service;

import com.api.shopapi.entity.AlarmRecord;
import com.api.shopapi.entity.dto.AlarmRecordDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public interface AlarmRecordService {

    int insert(AlarmRecord alarmRecord);

    int update(AlarmRecord alarmRecord);

    AlarmRecord getByAlarmRecordCode(String alarmRecordCode);

    List<AlarmRecord> getList();

    PageInfo<AlarmRecordDTO> getListPage(int pageIndex, int pageSize, Integer type,
                                         Date startTime,
                                         Date endTime,
                                         String governmentCode);
    PageInfo<AlarmRecordDTO> getListPageByUserCode(int pageIndex, int pageSize,String userCode);

    List<AlarmRecord> getListByUserCode(String userCode);

}
